home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1348 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.3 KB  |  50 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          if(_root.even5 == 2)
  7.          {
  8.             _root.nogo.exit3._x = _root.lvl.hewitt._x;
  9.             _root.nogo.exit3._y = _root.lvl.hewitt._y;
  10.          }
  11.          else
  12.          {
  13.             _root.next_dis1 = 2;
  14.             _root.next_txt1 = "It\'s locked, but the lock looks pretty simple.";
  15.          }
  16.       }
  17.       if(_root.micon._currentframe == 2)
  18.       {
  19.          if(_root.even5 == 2)
  20.          {
  21.             _root.next_dis1 = 2;
  22.             _root.next_txt1 = "Haha no lock is any match for me.";
  23.          }
  24.          else
  25.          {
  26.             _root.next_dis1 = 2;
  27.             _root.next_txt1 = "It\'s locked, but the lock looks pretty simple.";
  28.          }
  29.       }
  30.       if(_root.micon._currentframe == 15)
  31.       {
  32.          if(_root.even40 == 0)
  33.          {
  34.             _root.next_dis1 = 2;
  35.             _root.next_txt1 = "I dont know how to pick locks.";
  36.          }
  37.          else
  38.          {
  39.             _root.next_dis1 = 2;
  40.             _root.next_txt1 = "It doesnt fit.";
  41.          }
  42.       }
  43.       if(_root.micon._currentframe == 16 && _root.even5 != 2)
  44.       {
  45.          stopAllSounds();
  46.          _root.gotoAndStop(42);
  47.       }
  48.    }
  49. }
  50.